package com.ruoyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.ApprovalRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ApprovalRecordMapper extends BaseMapper<ApprovalRecord> {


    @Insert("INSERT INTO erp_audit_record (ji_id, id, business_id, business_type, approval_time, audit_result, opinion, create_time, update_time) " +
            "VALUES (#{jiId}, #{id}, #{businessId}, #{businessType}, #{approvalTime}, #{result}, #{opinion}, #{createTime}, #{updateTime})")
   int insertApprovalRecord(ApprovalRecord entity);

}
